package com.you.pattern.decorator;

/**
 * 鸡蛋装饰者 EggDecorator 类
 */
public class EggBatterCakeDecorator extends BatterCakeDecorator {

    public EggBatterCakeDecorator(BatterCake batterCake) {
        super(batterCake);
    }

    @Override
    protected void additionalSomething() {

    }

    @Override
    protected String makeBatterCake() {
        return super.makeBatterCake() + "+1个鸡蛋";
    }

    @Override
    protected int calculatePrice() {
        return super.calculatePrice() + 1; //增加一个鸡蛋，加一块钱
    }
}
